// 用户数据模块
import { storage } from "@/utils";
import config from "@/utils/config"
import {
  USER_INFO
} from "../types"

const statex = {
  userInfo: storage.get(config.userCatchKey) ? storage.get(config.userCatchKey) : {}
};

const getters = {};

const mutations = {
  [USER_INFO](state, data) {
    state.userInfo = data
  }
};

const actions = {};

export default {
  state: statex,
  mutations,
  actions,
  getters
}
